import { axios } from '@/utils/request'

/**
 * 分页查询biz_collection_model
 *
 * @author zxw
 * @date 2022/11/01 15:32
 */
export function page (parameter) {
    return axios({
        url: '/collectionModel/page',
        method: 'get',
        params: parameter
    })
}

/**
 * 增加biz_collection_model
 *
 * @author zxw
 * @date 2022/11/01 15:32
 */
export function add (parameter) {
    return axios({
        url: '/collectionModel/add',
        method: 'post',
        data: parameter
    })
}

/**
 * 编辑biz_collection_model
 *
 * @author zxw
 * @date 2022/11/01 15:32
 */
export function edit (parameter) {
    return axios({
        url: '/collectionModel/edit',
        method: 'post',
        data: parameter
    })
}

/**
 * 查看详情biz_collection_model
 *
 * @author zxw
 * @date 2022/11/01 15:32
 */
export function detail (parameter) {
    return axios({
        url: '/collectionModel/detail',
        method: 'get',
        params: parameter
    })
}

/**
 * 删除biz_collection_model
 *
 * @author zxw
 * @date 2022/11/01 15:32
 */
export function del (parameter) {
    return axios({
        url: '/collectionModel/delete',
        method: 'post',
        data: parameter
    })
}

/**
 * 同步模型
 *
 * @author zxw
 * @date 2022/11/01 15:32
 */
export function sync (parameter) {
    return axios({
        url: '/collectionModel/sync',
        method: 'post',
        data: parameter
    })
}
